#ifndef _SPRITE_MANAGER_H_
#define _SPRITE_MANAGER_H_

#include "irrMap.h"
#include "rect.h"
#include "Common/singleton.h"

class CSprite;
class CFont;

class CSpriteManager : public Singleton<CSpriteManager>
{

public:
	CSpriteManager();
	~CSpriteManager();
	
	int LoadSprite(const char *spriteFile, bool bFont = false, bool bLinear = true);

	CSprite* GetSprite(const char *spriteFile);
	//CFont* GetFont(const char *spriteFile);

	void	UnloadSprite(const char*spriteFile);

	void	UnloadAll();

private:
	irr::core::map<int, CSprite *> m_pSpriteMap;
private:
	bool FindSpriteByName(const char *pName);
	int GetSpriteFlag( const char *pName );	
};
#endif //_GS_LOGO_H_